package com.ahuan.mapper;

import com.ahuan.domain.UserAction;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserActionMapper {

    @Insert("insert into ${act.tableName}(username,start_time,end_time,time,action,req_resource,req_data,res_data)" +
            "values(#{act.username},#{act.startTime},#{act.endTime},#{act.time},#{act.action},#{act.reqResource},#{act.reqData},#{act.resData})")
    Integer insert(@Param("act") UserAction userAction);
}
